enable_testing()

add_executable(
  lexer_test
  lexer_test.cc
  
  ../../lexer.cc
  ../../type.cc
  ../../diag_engine.cc
)

llvm_map_components_to_libnames(llvm_all Support Core)

target_link_libraries(
  lexer_test
  GTest::gtest_main
  ${llvm_all}
)

include(GoogleTest)
gtest_discover_tests(lexer_test)